// START SNIPPET: ShopDaoHibernate
package nothing.dao.hibernate;

import nothing.model.Shop;
import nothing.dao.ShopDao;
import org.appfuse.dao.hibernate.GenericDaoHibernate;

import java.util.List;

public class ShopDaoHibernate extends GenericDaoHibernate<Shop, Long> implements ShopDao {

    public ShopDaoHibernate() {
        super(Shop.class);
    }

    @SuppressWarnings("unchecked")
    public List<Shop> findByName(String name) {
        return getHibernateTemplate().find("from Shop where name=?", name);
    }
}
// START SNIPPET: ShopDaoHibernate

